package com.ruoyi.pack.domain;

import java.math.BigDecimal;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目物料表 pack_project_material
 * 
 * @author ruoyi
 */
public class PackProjectMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 项目物料ID */
    private Long projectMaterialId;

    /** 项目ID */
    @NotNull(message = "项目ID不能为空")
    private Long projectId;

    /** 物料编码 */
    @Excel(name = "物料编码")
    @NotBlank(message = "物料编码不能为空")
    @Size(min = 0, max = 50, message = "物料编码长度不能超过50个字符")
    private String materialCode;

    /** 物料名称 */
    @Excel(name = "物料名称")
    @NotBlank(message = "物料名称不能为空")
    @Size(min = 0, max = 100, message = "物料名称长度不能超过100个字符")
    private String materialName;

    /** 器具型号编码 */
    @Excel(name = "器具型号编码")
    @NotBlank(message = "器具型号编码不能为空")
    @Size(min = 0, max = 50, message = "器具型号编码长度不能超过50个字符")
    private String containerMaterialCode;

    /** 器具型号名称 */
    @Excel(name = "器具型号名称")
    @NotBlank(message = "器具型号名称不能为空")
    @Size(min = 0, max = 100, message = "器具型号名称长度不能超过100个字符")
    private String containerMaterialName;

    /** 内衬方案（例如：层板:5;垫块:20;） */
    @Excel(name = "内衬方案")
    @Size(min = 0, max = 500, message = "内衬方案长度不能超过500个字符")
    private String liningScheme;

    /** 收容数 */
    @Excel(name = "收容数")
    private Integer capacityCount;

    /** 单件物料体积（立方米） */
    @Excel(name = "单件物料体积")
    private BigDecimal volume;

    /** 单件物料净重（千克） */
    @Excel(name = "单件物料净重")
    private BigDecimal weight;

    /** 单件物料货值（元） */
    @Excel(name = "单件物料货值")
    private BigDecimal goodsValue;

    /** 项目编码（用于导出） */
    @Excel(name = "项目编码")
    private String projectCode;

    /** 项目名称（用于导出） */
    @Excel(name = "项目名称")
    private String projectName;

    public Long getProjectMaterialId()
    {
        return projectMaterialId;
    }

    public void setProjectMaterialId(Long projectMaterialId)
    {
        this.projectMaterialId = projectMaterialId;
    }

    public Long getProjectId()
    {
        return projectId;
    }

    public void setProjectId(Long projectId)
    {
        this.projectId = projectId;
    }

    public String getMaterialCode()
    {
        return materialCode;
    }

    public void setMaterialCode(String materialCode)
    {
        this.materialCode = materialCode;
    }

    public String getMaterialName()
    {
        return materialName;
    }

    public void setMaterialName(String materialName)
    {
        this.materialName = materialName;
    }

    public String getContainerMaterialCode()
    {
        return containerMaterialCode;
    }

    public void setContainerMaterialCode(String containerMaterialCode)
    {
        this.containerMaterialCode = containerMaterialCode;
    }

    public String getContainerMaterialName()
    {
        return containerMaterialName;
    }

    public void setContainerMaterialName(String containerMaterialName)
    {
        this.containerMaterialName = containerMaterialName;
    }

    public String getLiningScheme()
    {
        return liningScheme;
    }

    public void setLiningScheme(String liningScheme)
    {
        this.liningScheme = liningScheme;
    }

    public Integer getCapacityCount()
    {
        return capacityCount;
    }

    public void setCapacityCount(Integer capacityCount)
    {
        this.capacityCount = capacityCount;
    }

    public BigDecimal getVolume()
    {
        return volume;
    }

    public void setVolume(BigDecimal volume)
    {
        this.volume = volume;
    }

    public BigDecimal getWeight()
    {
        return weight;
    }

    public void setWeight(BigDecimal weight)
    {
        this.weight = weight;
    }

    public BigDecimal getGoodsValue()
    {
        return goodsValue;
    }

    public void setGoodsValue(BigDecimal goodsValue)
    {
        this.goodsValue = goodsValue;
    }

    public String getProjectCode()
    {
        return projectCode;
    }

    public void setProjectCode(String projectCode)
    {
        this.projectCode = projectCode;
    }

    public String getProjectName()
    {
        return projectName;
    }

    public void setProjectName(String projectName)
    {
        this.projectName = projectName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("projectMaterialId", getProjectMaterialId())
            .append("projectId", getProjectId())
            .append("materialCode", getMaterialCode())
            .append("materialName", getMaterialName())
            .append("containerMaterialCode", getContainerMaterialCode())
            .append("containerMaterialName", getContainerMaterialName())
            .append("liningScheme", getLiningScheme())
            .append("capacityCount", getCapacityCount())
            .append("volume", getVolume())
            .append("weight", getWeight())
            .append("goodsValue", getGoodsValue())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 